package com.coins.common.redis;

/**
 * 功能：缓存模块
 * */
public enum RedisModules {

	REDISUSER("redis_user"),
	REDISTAFF("redis_staff"),
	REDISCOMPANY("redis_company"),
	REDISDISEASE("redis_disease");
	
	
	private String values;

	private RedisModules(String values) {
		this.values = values;
	}

	public static RedisModules nvalueOf(String value) {
		for (RedisModules module : RedisModules.values()) {
			if (module.values.equals(value)) {
				return module;
			}
		}
		return null;
	}

	@Override
	public String toString() {
		return this.values;
	}

}
